﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySoftWare.BaseModel;
using MySoftWare.DataCommon;

namespace MySoftWare.MVCCommon
{
    /// <summary>
    /// added by lqm 2013.05.31
    /// 菜单处理逻辑类
    /// </summary>
    public class MenuHelper
    {
        /// <summary>
        /// 获取菜单列表
        /// </summary>
        /// <returns></returns>
        public static List<MenuModel> GetSysMenuList()
        {
            return MenuAccessor.GetSysMenuList();
        }

        public static List<MenuModel> GetMenuChild(string MenuID)
        {
            return MenuAccessor.GetMenuChild(MenuID);
        }

        public static List<TreeMenuModel> GetSysMenuList(int ParentID)
        {
            return MenuAccessor.GetTreeMenuList(ParentID);
        }
    }
}
